<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
	
	<link rel="stylesheet" href="main.css">			
</head>
<table class='visible' style='width:60%;' border='1'>
		<tr>
			<th colspan='2'>ITEM</th>			
		</tr>
		<tr>
			<td colspan='2'>
				General Info:<br />
				If an item-name is not given, it is generated off the item &lt;type&gt; 
			</td>
		</tr>
		<tr style='font-weight:bold;'>
			<td>Data-Struct</td>
			<td style='white-space:nowrap;'>&lt;item&gt;</td>
		</tr>
		<tr>
			<td>&lt;number&gt;</td>
			<td>Number of item (for inventory)</td>
		</tr>
		<tr>
			<td>&lt;idname&gt;</td>
			<td>Number of Name, if not identified</td>
		</tr>
		<tr>
			<td>&lt;unidname&gt;</td>
			<td>Number of Name, if identified</td>
		</tr>
		<tr>
			<td>&lt;ammo&gt;</td>
			<td>
				Depending on <b>&lt;use&gt;</b><br />
				USE_FIREDWEAPON (e.g. Bow, Gun) : Number of shots<br />
				USE_WAND: Number of spells that can be cast (after that it has no effect)<br /> 
			</td>
		</tr>
		<tr>
			<td>&lt;iconno&gt;</td>
			<td>
				Which icon to use for display.<br />
				It is translated in an own table which model to use for 3D-Display  
			</td>
		</tr>
		<tr>
			<td>&lt;type&gt;</td>
			<td>
				Type of item:<br />
				TYPE_NONE<br />
				TYPE_HELMET<br />
				TYPE_WEAPON<br />
				TYPE_SHIELD<br />
				TYPE_SHOES<br />
				TYPE_STONE<br />
				TYPE_ARROW<br />
				TYPE_KEY<br />
				TYPE_POTION<br />
				TYPE_RING<br />
				TYPE_WAND<br />
				TYPE_TWOHANDWEAPON<br />
				TYPE_SLING<br />
				TYPE_BOW<br />
				TYPE_DART<br />
				TYPE_SPELLBOOK<br />
				TYPE_CLERICHOLYSYMBOL<br />
				TYPE_ARMOR<br />
				TYPE_ROBE<br />
				TYPE_BRACERS<br />
				TYPE_MAGESCROLL<br />
				TYPE_CLERICSCROLL<br />
				<br />
			</td>
		</tr>
		<tr>
			<td>&lt;cooldown&gt;</td>
			<td>Time to wait unit it can be used again (for WEAPONS), in tenths of a seconds</td>
		</tr>
		<tr>
			<td>&lt;skill&gt;</td>
			<td>
				Skill needed to use this item:<br />
				SKILL_NONE<br />
				SKILL_FIGHTER<br />
				SKILL_MAGE<br />
				SKILL_CLERIC<br />				
				SKILL_...<br />
				<br />
				Is checked against a characters skill
			</td>
		</tr>
		<!-- The following data is only needed, if a global item list is used (EOB-CLONE)		
		<tr>
			<td>&lt;tilepos&gt;</td>
			<td>
				Position on Tile:<br />
				[0..3] if Bottom<br />
				[4..7] if compartment in wall
			</td>
		</tr>		
			<td>&lt;mazepos&gt;</td>
			<td>Position in Maxe (x, y)</td>
		</tr>
		<tr>
			<td>&lt;level&gt;</td>
			<td>Number of Maze-Level</td>
		</tr>
		<tr>
			<td>&lt;&gt;</td>
			<td></td>
		</tr>
		-->
		<tr>
			<td>&lt;value&gt;</td>
			<td>				
				Additional info about item, depending on <b>&lt;use&gt;</b><br />
				USE_SHIELD: Additional defense point<br />
				USE_MELEEWEAPON: Additional damage for attack (&lt; 0: cursed)<br />
				USE_FIREDWEAPON (e.g. Bow): Additional damage for attack (&lt; 0: cursed)<br />
					 (e. g. Darts): Additional damage for attack (&lt; 0: cursed)<br />
				USE_KEY: Number of key (To check out with locks for fit)<br />
				USE_CLERICSYMBOL: None<br />
				USE_SPELLBOOK: None<br />
				USE_RATION: How many food points to add(&lt; 0: Rotten food)<br />
				USE_WRISTS: Additional defense points<br />
				USE_CLERICSCROLL: Number of <b>'spell'</b> to cast / learn<br />
				USE_MAGESCROLL: Number of <b>'spell'</b> to cast / learn<br />
				USE_ARMOR: Additional defense points (&lt; 0: cursed)<br />
				USE_NECKLACE: Spell-No if magic<br />
				USE_MISC: None<br />
				USE_STONEITEM: Which item (To check out if used for fit)<br />
				USE_LOCKPICKS: None<br />
				USE_MISC2: None<br />
				USE_COIN: None<br />
				USE_POTION: Number of use effect additional
					(EFFECT_HEAL, EFFECT_POISON, EFFECT_STRENGTH, EFFECT_SPEED, EFFECT_FOOD, EFFECT_INVISIBLE, EFFECT_CUREPOISON<br />
					<b>NEW:</b>Additional value for potion effect<br />
				USE_WAND: Number of <b>'spell'</b> to cast<br />
				USE_HORN: Number of sound to play<br />
				USE_RING: Number of effect<br />
				<br />
			</td>
		</tr>
		<tr>
			<td>&lt;invbits&gt;</td>
			<td>Can be put at tis places in the inventory (Bit-Wise)</td>
		</tr>
		<tr>
			<td>&lt;handbits&gt;</td>
			<td>In which hand it can be held (left, right)</td>
		</tr>
		<tr>
			<td>&lt;acadd&gt;</td>
			<td>
				Adds this amount of points to the armor-class (defense)<br />
				For ITEMS, that are weared.	
			</td>
		</tr>
		<tr>
			<td>&lt;profallowed&gt;</td>
			<td>
				Allowed for this profession (character class):<br />
				Can only be used by this character class (e. g. Wand only by mages)
			</td>
		</tr>
		<tr>
			<td>&lt;eff_type&gt;</td>
			<td>
				How the effect has to be handled:<br />
				EFFTYPE_NONE<br />
				EFFTYPE_ATTACK<br />
				EFFTYPE_HEAL<br />
			</td>
		</tr>
		<tr>
			<td>&lt;effect&gt;</td>
			<td>
				Additional attack type:<br />
				EFFTYPE_NONE<br />
				EFFTYPE_SLASH<br />
				EFFTYPE_CRUSH<br />
				EFFTYPE_POKE<br />
				EFFTYPE_HOLY<br />
				EFFTYPE_EVIL<br />
				EFFTYPE_FIRE<br />
				EFFTYPE_ICE<br />
				EFFTYPE_ZAP<br />
				EFFTYPE_POISON<br />
				EFFTYPE_STONE<br />
				EFFTYPE_PARALYZE<br />
				EFFTYPE_SPEED<br />
				EFFTYPE_STRENGTH<br />				
				EFFTYPE_FOOD<br />	
				EFFTYPE_INVISIBLE<br />
				EFFTYPE_...<br />	
				<br />
				Is checked against the characters 'resistance'<br />		
				Resistances are in percent [-100% (max. vulnerability) .. +100% (Not affected)]<br />
				An 'EFFTYPE_ATTACK's DICE is multiplied / divided by the resistance value. 0: Normal attack
			</td>
		</tr>
		<tr>
			<td>&lt;dice_small&gt;</td>
			<td>
				DICE: [Number of throws], [Number of sides], [added value]<br />
				Attack value against small monsters
			</td>
		</tr>
		<tr>
			<td>&lt;dice_big&gt;</td>
			<td>
				Attack value against big monsters
			</td>
		</tr>
		<tr>
			<td>&lt;duration&gt;</td>
			<td>
				In seconds<br />
				E.g for EFFECT_POISON, EFFECT_STRENGTH, EFFECT_SPEED
			</td>
		</tr>
		<tr>
			<td>&lt;repeat&gt;</td>
			<td>
				E.g for EFFECT_POISON, repeated this much times. 0: Forever 
			</td>
		</tr>
		<tr>
			<td>&lt;use&gt;</td>
			<td>
				Describes for the code, how the item is used<br />
				There are the following uses:<br />
				USE_SHIELD<br />
				USE_MELEEWEAPON<br />
				USE_FIREDWEAPON (e.g. Bow)<br />
				USE_RANGEDWEAPON (e. g. Darts)<br />
				USE_KEY (used in maze for locks)<br />
				USE_CLERICSYMBOL (for healer / paladin)<br />
				USE_SPELLBOOK (for mage)<br />
				USE_RATION (can be eaten)<br />
				USE_WRISTS (may have an effect on the wearer)<br />
				USE_CLERICSCROLL (healer can cast spell / learn spell)<br />
				USE_MAGESCROLL (mage can cast spell / learn spell)<br />
				USE_ARMOR (may have an effect on the wearer)<br />
				USE_NECKLACE (may have an effect on the wearer)<br />
				USE_MISC (special items for use in game)<br />
				USE_STONEITEM (special items for use in game)<br />
				USE_LOCKPICKS<br />
				USE_MISC2 (special items for use in game)<br />
				USE_COIN<br />
				USE_POTION (can be drunk, may effect the user)<br />
				USE_WAND (can be used by a mage for casting spells)<br />
				USE_HORN (special items for use in game, generates a sound)<br />
				USE_RING (may have an effect on the wearer)<br />
			</td>
		</tr>
	</table>
